package com.woniuxy.main.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.main.mapper.SharedMapper;
import com.woniuxy.main.pojo.Shared;
import com.woniuxy.main.service.SharedService;

import lombok.Data;

@Data
@Service
@Transactional
public class SharedServiceImp implements SharedService {
	
	@Autowired
	private SharedMapper sharedMapper;

	@Override
	public List<Shared> allSharedCoach() {
		return sharedMapper.allSharedCoach();
	}

	@Override
	public List<Shared> allSharedStudent() {
		return sharedMapper.allSharedStudent();
	}

	@Override
	public List<Shared> allFollowedCoach(Shared shared) {
		return sharedMapper.allFollowedCoach(shared);
	}

	@Override
	public List<Shared> allFollowedStudent(Shared shared) {
		return sharedMapper.allFollowedStudent(shared);
	}

	@Override
	public List<Shared> allFriendCoach(Shared shared) {
		return sharedMapper.allFriendCoach(shared);
	}

	@Override
	public List<Shared> allFriendStudent(Shared shared) {
		return sharedMapper.allFriendStudent(shared);
	}

	@Override
	public List<Shared> allCurrentUser(Shared shared) {
		return sharedMapper.allCurrentUser(shared);
	}

	@Override
	public int insertShared(Shared shared) {
		return sharedMapper.insertShared(shared);
	}

	@Override
	public int deleteThis(Shared shared) {
		return sharedMapper.deleteThis(shared);
	}

}
